projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33fd210
)
Ensure widgets get a GtkStyle with its backing GtkStyleContext
author
Carlos Garnacho
<carlosg@gnome.org>
Tue, 21 Dec 2010 00:27:32 +0000
(
01:27
+0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Tue, 21 Dec 2010 00:33:51 +0000
(
01:33
+0100)
Since the default style also has a backing context, it wasn't
being replaced after initialization.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 97a1f447f1e18dc84407afeea07e781fc438959e..66838bcca93649e63353bc1b071a18ee32930329 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-7741,7
+7741,7
@@
gtk_widget_ensure_style (GtkWidget *widget)
g_return_if_fail (GTK_IS_WIDGET (widget));
if (!widget->priv->style ||
-
!gtk_style_has_context (widget->priv->style
))
+
widget->priv->style == gtk_widget_get_default_style (
))
{
GtkStyle *style;